home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Greatest Childrens Stories Ever Told
/
Greatest_Stories.iso
/
movies
/
3bears
/
shared.dir
/
01008_Script_MAIN STARTHANDLER
< prev
next >
Wrap
Text File
|
1994-11-07
|
2KB
|
81 lines
--update 10/12/94 ch2/tales no testing
--Startmovie handler
on startmovie
GLOBAL NEXTMOVIE,theRECT
checktheMOVIE
--set theRECT=rect(the StageLeft+120,theStageTop+140,the StageLeft+408,the StageTop+218)
IF NEXTMOVIE>0 OR THE FRAME>10 THEN
fixpuppets
else
setpuppets false
end if
IF THE FRAME<3 THEN
unloadcast
preloadcast 1,30
end if
end startmovie
ON ENTERFRAME
GLOBAL OK,QA,questions,returnframe
IF (THE FRAME< RETURNFRAME and questions=1) THEN SET QA=0
else if (RETURNFRAME>THE FRAME and questions=1) then set qa=1
END
on checktheMOVIE
global returnframe,holdreturnframe,nextmovie,moviename,BACKMOVIE
if the movie contains "1" then
changetheMovie "2","1"
if the frame>marker("1") then fixpuppets
exit
else
if the movie contains "2" then
changetheMovie "3","1"
if the frame=1 and nextmovie=0 then set returnframe=0
if nextmovie=1 then set returnframe=holdreturnframe
if nextmovie=0 then set nextmovie=1
exit
else
if the movie contains "3" then
changetheMovie "4","2"
if the frame=1 and nextmovie=1 then set returnframe=0
if nextmovie=2 then set returnframe=holdreturnframe
if nextmovie=1 then set nextmovie=2
exit
else
if the movie contains "4" then
changetheMovie "5","3"
if the frame=1 and nextmovie=2 then set returnframe=0
if nextmovie=3 then set returnframe=holdreturnframe
if nextmovie=2 then set nextmovie=3
exit
end if
end if
end if
end if
end checktheMOVIE
on changetheMovie mov1, mov2
global moviename,BACKMOVIE
put offset(".",the movie) into offDIR
put chars(THE MOVIE,1,offDir-2) & mov1&".DIR" into moviename
PUT MOVIENAME
put chars(THE MOVIE,1,offDir-2) & mov2&".DIR" into backmovie
PUT backmovie
end changetheMovie
on fixsprite state
repeat with buttons=19 to 21
set the type of sprite buttons to state
end repeat
set the type of sprite 20 to 1
set the type of sprite 24 to 1
end fixsprite